package scau.jump.securitytrace.service;

import scau.jump.securitytrace.service.exception.InvalidAntiFakeCodeException;
import scau.jump.securitytrace.service.exception.RFIDNotExistException;

import com.securitytrace.model.RFID;

public interface RFIDService {
	
	public void add(RFID rfid);
	
	public RFID getById(String id) throws RFIDNotExistException;
	
	public void addProductInfo(String rfidId, long productId) throws RFIDNotExistException;
	
	public void addRFIDRecordInfo(String rfidId, long addressId) throws RFIDNotExistException;
	
	public RFID getByAntiFakeCode(String code) throws InvalidAntiFakeCodeException;
	
	public void setParent(String childId, String parentId) throws RFIDNotExistException;
	
	public void setParent(String[] childIds, String parentId) throws RFIDNotExistException;

}
